package com.liumuxian.exam.client;

import com.liumuxian.exam.client.impl.OrdersClientImpl;
import entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.HashSet;
import java.util.Set;
@Component
@FeignClient(value = "examination-orders" , fallback = OrdersClientImpl.class)
public interface OrdersClient {
    @RequestMapping("/orders/shoppurc")
    Result shoppurc(@RequestParam HashSet shopid,@RequestParam String userid);

}
